#define _CRT_SECURE_NO_WARNINGS
#include "SList.h"
testslist1()
{
	SLnode* plist = NULL;
	SLpushfront(&plist, 1);
	SLpushfront(&plist, 2);
	SLpushfront(&plist, 3);
	SLpushfront(&plist, 4);
	SLpushfront(&plist, 5);
	SLprint(plist);
}
testslist2()
{
	SLnode* plist = NULL;
	SLpushtail(&plist, 1);
	SLpushtail(&plist, 2);
	SLpushtail(&plist, 3);
	SLpushtail(&plist, 4);
	SLpushtail(&plist, 5);
	SLpushfront(&plist, 6);
	SLprint(plist);
	SLpoptail(&plist);
	SLprint(plist);
	SLpoptail(&plist);
	SLprint(plist);
	/*SLpoptail(&plist);
	SLprint(plist);*/
	//SLpopfront(&plist);
	//SLprint(plist);
	/*SLpopfront(&plist);
	SLprint(plist);
	SLpopfront(&plist);
	SLprint(plist);*/
	SLnode* pos = SLfind(plist, 3);
	pos->data = 30;
	SLprint(plist);
}
int main()
{
	//testslist1();
	testslist2();

	return 0;
}